<template>
  <div>
    <!-- 轮播图左侧 -->
    <div class="header">
      <div class="header-nav">
        <div class="gonglve-nav">
          <div class="nav-item">
            <div class="nav-title">
              <h3>海外冬季目的地精选</h3>
              <i class="iconfont icon-xianxingtubiaozhizuomoban-09"></i>
            </div>
            <div class="nav-panel">1</div>
          </div>
          <div class="nav-item">
            <div class="nav-title">
              <h3>国内冬季目的地推荐</h3>
              <i class="iconfont icon-xianxingtubiaozhizuomoban-09"></i>
            </div>
            <div class="nav-panel">2</div>
          </div>
          <div class="nav-item">
            <div class="nav-title">
              <h3>奔向海岛</h3>
              <i class="iconfont icon-xianxingtubiaozhizuomoban-09"></i>
            </div>
            <div class="nav-panel">3</div>
          </div>
          <div class="nav-item">
            <div class="nav-title">
              <h3>主题推荐</h3>
              <i class="iconfont icon-xianxingtubiaozhizuomoban-09"></i>
            </div>
            <div class="nav-panel">4</div>
          </div>
        </div>
        <div class="input_like">
          <span class="iconfont icon-sousuo sousuo"></span>
          <input type="text" placeholder="请输入想去的地方，如:香港" />
        </div>
        <div class="app_d">
          <div><img src="../../static/images/mfw.png" alt="" /></div>
          <div class="ziyouxing">
            <h4>
              <a href="" class="ziyouxing_a"
                >马蜂窝自由行APP下载
                <img
                  src="../../static/images/saoma.png"
                  alt=""
                  class="saoma_img"
                />
              </a>
            </h4>
            <p>
              <a href="">iPhone版</a>
              <span>|</span>
              <a href="">Android版</a>
              <span>|</span>
              <a href="">iPad版</a>
            </p>
          </div>
        </div>
        <div class="hr"></div>
      </div>
      <!-- 轮播图区域 -->
      <div class="header-side">
        <Carousel :RC_data="RC_data"></Carousel>
      </div>
    </div>
    <!-- 推荐内容 -->
    <div class="banner">
      <!-- 左 -->
      <div class="sidebar">
        <div class="side-hd">旅游攻略导航</div>
        <div class="nav-drop">
          <div class="drop-item">
            <i></i>
            国内
          </div>
          <div class="drop-item">
            <i></i>
            国外
          </div>
          <div class="drop-item">
            <i></i>
            主题
          </div>
        </div>
        <div class="rank">
          <ul>
            <li class="gl_list">
              <a href="">
                <img src="../../static/images/beijing.jpeg" alt="北京" />
              </a>
              <p class="time">更新日期:2021-08-24</p>
              <div class="down_cout">
                <i class="iconfont icon-iconset0425 xiazai"></i>
                <p>4330657人下载</p>
              </div>
            </li>
            <li>
              <span class="num">1</span>
              <a href="" title="成都">成都</a>
            </li>
            <li>
              <span class="num">2</span>
              <a href="" title="成都">西安</a>
            </li>
            <li>
              <span class="num">3</span>
              <a href="" title="成都">重庆</a>
            </li>
            <li>
              <span class="num">4</span>
              <a href="" title="成都">北疆</a>
            </li>
            <li>
              <span class="num">5</span>
              <a href="" title="成都">南疆</a>
            </li>
            <li>
              <span class="num">6</span>
              <a href="" title="成都">贵阳</a>
            </li>
            <li>
              <span class="num">7</span>
              <a href="" title="成都">三亚</a>
            </li>
            <li>
              <span class="num">8</span>
              <a href="" title="成都">海南</a>
            </li>
            <li>
              <span class="num">9</span>
              <a href="" title="成都">甘阳</a>
            </li>
            <li>
              <span class="num">10</span>
              <a href="" title="成都">香港</a>
            </li>
          </ul>
        </div>
      </div>
      <!-- 右 -->
      <div class="cont-main">
        <div class="hd">推荐攻略</div>
        <div class="recommend">
          <!-- 游记 -->
          <Travels></Travels>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import { mapState, mapActions } from "vuex";
import Carousel from "../../components/Carousel/index.vue";
import Travels from "../../components/Travels/index.vue";
export default {
  name: "Strategy",
  components: {
    Carousel,
    Travels,
  },
  computed: {
    ...mapState("Carousel", ["RC_data"]),
  },
  methods: {
    ...mapActions("Carousel", ["getRchart"]),
  },
  async mounted() {
    this.getRchart();
  },
};
</script>

<style>
/* 头部轮播图内容 */
.header {
  display: flex;
  justify-content: space-between;
  width: 1000px;
  height: 340px;
  margin: 0 auto;
  margin-bottom: 15px;
}
.header .header-nav {
  width: 260px;
  height: 299px;
}
.gonglve-nav {
  position: relative;
  width: 260px;
  height: 165px;
  border: 1px solid #ddd;
  box-shadow: 0 0.5px 2px rgba(0, 0, 0, 0.1);
}
.gonglve-nav .nav-item {
  height: 41px;
  padding: 0 15px;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
  line-height: 40px;
  font-size: 14px;
  color: rgb(221, 220, 220);
}
.gonglve-nav .nav-item .nav-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 228px;
  color: #666;
}
.gonglve-nav .nav-item:hover .nav-panel {
  display: block;
}
.nav-panel {
  color: rgb(24, 23, 23);
  position: absolute;
  left: 258px;
  top: -1px;
  width: 350px;
  height: 340px;
  border: 1px solid #ddd;
  background-color: rgb(255, 255, 255);
  display: none;
  box-shadow: 0 4px 3px rgba(0, 0, 0, 0.2);
  z-index: 99;
}
.input_like {
  display: flex;
  justify-content: space-between;
  width: 260px;
  height: 44px;
  margin-top: 20px;
  border: 2px solid rgb(255, 136, 0);
}
.input_like .sousuo {
  font-size: 36px;
  font-weight: 700;
  color: #ff9d00;
}
.input_like input {
  width: 206px;
  height: 36px;
  outline: none;
  border: 0;
}
.app_d {
  display: flex;
  justify-content: space-between;
  width: 260px;
  height: 65px;
  margin-top: 20px;
}
.app_d div {
  width: 50px;
  height: 50px;
}
.app_d .ziyouxing {
  width: 180px;
  height: 45px;
}
.ziyouxing p {
  margin-top: 7px;
}
.ziyouxing p span {
  margin: 0 3px;
}
.ziyouxing_a {
  position: relative;
}
.ziyouxing_a:hover img {
  display: block;
}
.ziyouxing .ziyouxing_a img {
  width: 120px;
  height: 160px;
}
.saoma_img {
  position: absolute;
  left: 25px;
  top: 20px;
  z-index: 99;
  display: none;
}
.app_d h4 a {
  font-size: 16px;
  color: #ff9d00;
}
.app_d div img {
  width: 50px;
  height: 50px;
  align-items: center;
}
.header .header-side {
  width: 700px;
  height: 340px;
}
/* 中间内容 */
.banner {
  display: flex;
  justify-content: space-between;
  width: 1000px;
  margin: 0 auto;
}
/* 中间内容 左侧*/
.sidebar {
  width: 160px;
  height: 875px;
}
.cont-main {
  width: 790px;
}
.side-hd {
  height: 50px;
  font-size: 16px;
  color: #333;
  border-bottom: 1px solid #eee;
  line-height: 48px;
}
.nav-drop {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  height: 45px;
  line-height: 25px;
  color: #333;
  border-bottom: 1px solid #eee;
  align-items: center;
}
.nav-drop i {
  float: right;
  margin-top: 10px;
  border-top: 4px solid #999;
  border-left: 4px dashed transparent;
  border-right: 4px dashed transparent;
  font-size: 0;
  overflow: hidden;
}
.rank {
  width: 160px;
  height: 768px;
}
.gl_list a {
  display: block;
  height: 184px;
  width: 130px;
  overflow: hidden;
}
.gl_list img {
  height: 184px;
  width: 130px;
}
.gl_list .time {
  padding-left: 8px;
}
.down_cout {
  height: 24px;
  width: 130px;
  background: #ebebeb;
  border-radius: 30px;
  margin-top: 5px;
  position: relative;
}
.down_cout p {
  line-height: 24px;
  color: #666;
  padding-left: 30px;
}
.down_cout .xiazai {
  position: absolute;
  top: -7px;
  left: 3px;
  font-size: 20px;
  font-weight: 700;
  color: rgb(8, 201, 82);
}
.rank .num {
  margin-right: 10px;
  font-size: 26px;
  color: #ff9d00;
}
.rank a {
  font-size: 20px;
  margin-left: 5px;
}
.rank li {
  border-top: 1px solid #f7f7f7;
  line-height: 40px;
}
/* 中间内容 右侧*/
.hd {
  height: 50px;
  border-bottom: 1px solid #eee;
  line-height: 48px;
  font-size: 20px;
}
.left-image img {
  width: 220px;
  height: 150px;
}
.right-text {
  width: 550px;
  height: 150px;
  font-size: 18px;
}
.ext-r {
  font-size: 12px;
  margin-top: 35px;
  float: right;
  /* width: 156px; */
  height: 22px;
}
.author {
  display: inline-block;
  margin-right: 5px;
  font-size: 12px;
  color: #ff9d00;
}
.author img {
  margin-right: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
}
.imgs li {
  float: left;
  width: 220px;
  display: inline;
  margin-right: 15px;
}
.imgs li img {
  width: 220px;
  height: 180px;
}
.imgs .ext-r {
  float: right;
  width: auto;
  line-height: 130px;
}
/* 字体图标颜色 */
.shopcar {
  color: #ff9d00;
}
.dianzan {
  color: #ff9d00;
}
a:hover {
  text-decoration: none;
}
</style>